
public class InitialPresentation {

	private static final int GOL_GENERATIONS=100;
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int xSize = 50;
		int ySize = 50;
		DisplayGrid seedGrid = new DisplayGrid(ySize,xSize,"Seed");
		SeedPopulation seed = new SeedPopulation(xSize,ySize, seedGrid,true);
		DisplayGrid goalGrid = new DisplayGrid(ySize,xSize,"Goal");
		GoalPopulation goal  = new GoalPopulation(ySize,xSize,goalGrid,true);
		GameOfLife gol = new GameOfLife();
		DisplayGrid finalGrid = new DisplayGrid(ySize,xSize,"Final");
		EvolvedPopulation finalEvolved = new EvolvedPopulation(seed,finalGrid);
		RuleSet bestRule = new RuleSet();
		bestRule.loadBestRules();
		gol.reset(finalEvolved, bestRule);
		gol.runSimulation(150);
		
		//Test pattern
		DisplayGrid seedGrid2 = new DisplayGrid(ySize,xSize,"Seed");
		SeedPopulation seed2 = new SeedPopulation(xSize,ySize, seedGrid2,false);

		//GameOfLife gol3 = new GameOfLife();

		EvolvedPopulation finalEvolved3 = new EvolvedPopulation(seed2,finalGrid);
		RuleSet bestRule4 = new RuleSet();
		bestRule4.loadBestRules4();
		gol.reset(finalEvolved3, bestRule4);
		gol.runSimulation(150);
		
/**		


		GameOfLife gol2 = new GameOfLife();
		EvolvedPopulation finalEvolved2 = new EvolvedPopulation(seed,finalGrid);
		RuleSet bestRule2 = new RuleSet();
		bestRule2.loadBestRules2();
		gol2.reset(finalEvolved2, bestRule2);
		gol2.runSimulation(150);
		
		for(int i=0;i<3;i++)
		{
		DisplayGrid seedGrid2 = new DisplayGrid(ySize,xSize,"Seed");
		SeedPopulation seed2 = new SeedPopulation(xSize,ySize, seedGrid2,true);

		//GameOfLife gol3 = new GameOfLife();

		EvolvedPopulation finalEvolved3 = new EvolvedPopulation(seed2,finalGrid);
		RuleSet bestRule3 = new RuleSet();
		bestRule3.loadBestRules3();
		gol.reset(finalEvolved3, bestRule3);
		gol.runSimulation(150);
		}
		
		//Test pattern
		DisplayGrid seedGrid2 = new DisplayGrid(ySize,xSize,"Seed");
		SeedPopulation seed2 = new SeedPopulation(xSize,ySize, seedGrid2,false);

		//GameOfLife gol3 = new GameOfLife();

		EvolvedPopulation finalEvolved3 = new EvolvedPopulation(seed2,finalGrid);
		RuleSet bestRule3 = new RuleSet();
		bestRule3.loadBestRules3();
		gol.reset(finalEvolved3, bestRule3);
		gol.runSimulation(150);
		**/
	}

}
